#ifndef __ENTITIES_H__
#define __ENTITIES_H__

#include "Entity.h"

#include "ResourceHolder.h"
#include "ResourceIDs.h"
// Klasa Potora poki co to tylko sie rysuje
class CMonster : public CEntity {
public:
	CMonster(TextureHolder &tex)	{
		mSprite.setTexture(tex.get(Textures::Monster1));
	}
	~CMonster() {

	}
	
	sf::FloatRect  getBounds() {
		sf::FloatRect rec = mSprite.getGlobalBounds();
		rec.top = getPosition().y;
		rec.left = getPosition().x;
		return rec;
	}
	virtual void   drawCurrent(sf::RenderTarget& target,sf::RenderStates states) const
	{
		target.draw(mSprite,states);
	}
	void run(float deltaTime)
	{
		
	}
private:
	sf::Sprite mSprite;
};
class CPlayer : public CEntity {
public:
	CPlayer(TextureHolder &tex)	{
		mSprite.setTexture(tex.get(Textures::Monster1));
	}
	~CPlayer() {

	}
	void run(float deltaTime)
	{

	}
	sf::FloatRect  getBounds() {
		sf::FloatRect rec = mSprite.getGlobalBounds();
		rec.top = getPosition().y;
		rec.left = getPosition().x;
		return rec;
	}
	virtual void   drawCurrent(sf::RenderTarget& target,sf::RenderStates states) const
	{
		target.draw(mSprite,states);
	}

private:
	sf::Sprite mSprite;
};
#endif